<%@ page language="java" contentType="text/html; charset=UTF-8" trimDirectiveWhitespaces="true"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.Date"%>    
<%@ include file="/WEB-INF/views/include.inc.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>基于地空数据链的飞行管理支持系统</title>
<link href="${contextPath}/styles/dwz/themes/default/style.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="${contextPath}/styles/dwz/themes/css/core.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="${contextPath}/styles/dwz/themes/css/print.css" rel="stylesheet" type="text/css" media="print"/>
<link href="${contextPath}/styles/validationEngine/css/validationEngine.jquery.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="${contextPath}/styles/ztree/css/zTreeStyle.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="${contextPath}/styles/uploadify/css/uploadify.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="${contextPath}/styles/treeTable/themes/default/treeTable.css" rel="stylesheet" type="text/css" />
<link href="${contextPath}/styles/keta/css/keta.css" rel="stylesheet" type="text/css" />
<link href="${contextPath}/styles/dwz/themes/css/top.css" rel="stylesheet" type="text/css" />
<link href="${contextPath}/styles/dwz/themes/css/bottom.css" rel="stylesheet" type="text/css" />
<link href="${contextPath}/styles/dwz/themes/css/home.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link href="${contextPath}/styles/dwz/themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
<![endif]-->
<!--[if lte IE 9]>
<script src="${contextPath}/styles/dwz/js/speedup.js" type="text/javascript"></script>
<![endif]-->
<script src="${contextPath}/styles/jquery/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/jquery.bgiframe.js" type="text/javascript"></script>

<script src="${contextPath}/styles/treeTable/jquery.treeTable.min.js" type="text/javascript"></script>
<%-- form验证 --%>
<script src="${contextPath}/styles/validationEngine/js/languages/jquery.validationEngine-zh_CN.js" type="text/javascript" charset="utf-8"></script>
<script src="${contextPath}/styles/validationEngine/js/jquery.validationEngine-2.6.4.js" type="text/javascript" charset="utf-8"></script>
<%--
<script src="${contextPath}/styles/dwz/js/dwz.core.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.util.date.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.barDrag.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.drag.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.tree.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.accordion.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.ui.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.theme.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.switchEnv.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.alertMsg.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.contextmenu.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.navTab.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.tab.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.resize.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.dialog.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.dialogDrag.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.sortDrag.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.cssTable.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.stable.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.taskBar.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.ajax.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.pagination.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.database.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.datepicker.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.effects.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.panel.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.checkbox.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.history.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.combox.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.print.js" type="text/javascript"></script>
--%>

<script src="${contextPath}/styles/dwz/js/dwz.min.js" type="text/javascript"></script>

<script src="${contextPath}/styles/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>
<%-- 自定义JS --%>
<script src="${contextPath}/styles/dwz/js/customer.js" type="text/javascript"></script>
<script src="${contextPath}/styles/keta/js/keta.js" type="text/javascript"></script>
<%-- upload --%>
<script src="${contextPath}/styles/uploadify/scripts/jquery.uploadify.min.js" type="text/javascript"></script>
<%-- zTree --%>
<script src="${contextPath}/styles/ztree/js/jquery.ztree.all-3.5.min.js" type="text/javascript"></script>

<script type="text/javascript">
$(function(){	 
	DWZ.init("${contextPath}/styles/dwz/dwz.frag.xml", {
		loginUrl:"${contextPath}/login/timeout", 
		loginTitle:"登录",	// 弹出登录对话框
		debug:false,	// 调试模式 【true|false】
		callback:function(){
			initEnv();
			$("#themeList").theme({themeBase:"${contextPath}/styles/dwz/themes"});
		}
	});
});   
</script>

			        
			        
			        
			        
			         <script>
 function searchFlpForm_submit(){
  $("form[name='searchFlpForm']").submit();
 }
</script>
</head>
<body scroll="no">
<div id="layout">	 
	<div id="container">
		<div id="navTab" class="tabsPage">
		 
		 
			<div class="navTab-panel tabsPageContent layoutBox">
				<div class="page unitBox">
				

<dwz:paginationForm action="${contextPath }/management/demo/task/listindex"
	page="${page }">
	<input type="hidden" name="search_LIKE_flightId"
		value="${param.search_LIKE_flightId}" />
			<input type="hidden" name="search_LIKE_planId"
		value="${param.search_LIKE_planId}" />
			<input type="hidden" name="search_LIKE_aircraftId"
		value="${param.search_LIKE_aircraftId}" />
			<input type="hidden" name="search_GTE_planDate"
		value="${gtePlanDate}" />
			<input type="hidden" name="search_LTE_planDate"
		value="${ltePlanDate}" />
			<input type="hidden" name="search_EQ_sendStatus"
		value="${param.search_EQ_sendStatus}" />
			<input type="hidden" name="search_GTE_sendDate"
		value="${param.search_GTE_sendDate}" />
					<input type="hidden" name="search_LTE_sendDate"
		value="${param.search_LTE_sendDate}" />
		
</dwz:paginationForm>

<form    name="searchFlpForm" method="post" action="${contextPath }/management/demo/task/listindex"
	onsubmit="return navTabSearch(this)">
	<div class="pageHeader">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label style="width: 120px;">
						航班号：
					</label>
					<input type="text" name="search_LIKE_flightId"
						value="${param.search_LIKE_flightId}" />
				</li>	
				
					<li>
					<label style="width: 120px;">
						 生成起始时间：
					</label>
					<input type="text" name="search_GTE_planDate" class="date"
						readonly="readonly" style="float: left;"
						value="${gtePlanDate}" dateFmt="yyyy-MM-dd" />
					<a class="inputDateButton" href="javascript:;" style="float: left;">选择</a>
				</li>		
				
				<li>
					<label style="width: 120px;">
						 生成结束时间：
					</label>
					<input type="text" name="search_LTE_planDate" class="date"
						readonly="readonly" style="float: left;"
						value="${ltePlanDate}" dateFmt="yyyy-MM-dd" />
					<a class="inputDateButton" href="javascript:;" style="float: left;">选择</a>
				</li>	
				
			
				
				
				
			</ul>
			<ul class="searchContent">
			
					<li>
					<label style="width: 120px;">
						机尾号：
					</label>
					<input type="text" name="search_LIKE_aircraftId"
						value="${param.search_LIKE_aircraftId}" />
				</li>
					<li>
					<label style="width: 120px;">
						 发送起始时间：
					</label>
					<input type="text" name="search_GTE_sendDate" class="date"  dateFmt="yyyy-MM-dd 
						readonly="readonly" style="float: left;"
						value="${param.search_GTE_sendDate}" />
					<a class="inputDateButton" href="javascript:;" style="float: left;">选择</a>
				</li>				
			    <li>
					<label style="width: 120px;">
						 发送结束时间：
					</label>
					<input type="text" name="search_LTE_sendDate" class="date"  dateFmt="yyyy-MM-dd 
						readonly="readonly" style="float: left;"
						value="${param.search_LTE_sendDate}" />
					<a class="inputDateButton" href="javascript:;" style="float: left;">选择</a>
				</li>
			
				
		 
			</ul>
			
			<ul class="searchContent">		 
				<li>
					<label style="width: 120px;">
						航班计划编号：
					</label>
					<input type="text" name="search_LIKE_planId"
						value="${param.search_LIKE_planId}" />
				</li>
			<li>
					<label style="width: 120px;">
						飞行计划发送状态：
					</label>
					<dwz:dic themeName="状态" paramName="search_EQ_sendStatus" 
						className="required validate[required]" selectedValue="${param.search_EQ_sendStatus}">
						<option  value="" >
							--请选择状态--
						</option>
					</dwz:dic>
				</li>
		
				
				
				
			</ul>
			
			
			<div class="subBar">
				<ul>
					<li>
						 
							 
												
								
						 <div class="search" onclick="searchFlpForm_submit()">					 
 
							</div>
							
								
						 
					</li>
				</ul>
			</div>
		</div>
	</div>
</form>

<div class="pageContent"> 

	<table class="table" layoutH="178" width="100%">
		<thead>
			<tr>
				<!--th width="22">
					<input type="checkbox" group="ids" class="checkboxCtrl">
				</th  -->
				<th>
					航班号
				</th>
				<th>
					机尾号
				</th>
				<th>
					航班计划编号
				</th>
				 	 
				<th>
					起飞机场
				</th>
				<th>
					降落机场
				</th>
				<th>
					航路方向信息
				</th>
			
				<th>
					飞行计划生成时间
				</th>

				<th>
					飞行计划发送时间
				</th>

				<th>
					飞行计划发送状态
				</th>

				<th>
					飞行计划发送报文
				</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${cptSends}">
				<tr target="slt_uid" rel="${item.id}">
					<!--  td>
						<input name="ids" value="${item.id}" type="checkbox">
					</td-->
					<td>
						${item.flightId}
					</td>
					<td>
						${item.aircraftId}
					</td>
					<td>
						${item.planId}
					</td>
					 	<td>
						${item.dep}
					</td>
					<td>
						${item.arr}
					</td>
					<td>				 					
				 				
						<a title="${item.routeline }" style="cursor:pointer;text-decoration: none;">
							<c:if test="${fn:length(item.routeline)>40 }">${ fn:substring( item.routeline ,0,40)} ...</c:if>
							 <c:if test="${fn:length(item.routeline)<=40 }">${  item.routeline }</c:if>						 
						 </a>
					</td>		 
				

					<td>
				 
						<fmt:formatDate value="${item.planDate}" pattern="yyyy-MM-dd HH:mm"/>	

					</td>
					<td>
					 
									<fmt:formatDate value="${item.sendDate}" pattern="yyyy-MM-dd HH:mm"/>	
					</td>
					<td>
				${item.sendStatus == "1" ? "已发送":"未发送"}
					</td>				 
					<td>
						
							<a target="dialog" mask="true"
								width="550" height="550" rel="Task_save"
								href="${contextPath }/management/demo/task/update/${item.id}"> 
								<img alt="" src="${contextPath }/styles/dwz/themes/css/images/icons/feixingjihua.png">
								
								</a> 
								
							
			 
		
					</td>

				</tr>
			</c:forEach>
		</tbody>
	</table>
	<!-- 分页 -->
	<dwz:pagination page="${page}" />
</div>
			        
			        
			        
			        
			        
				</div>
			</div>
		</div>
	</div>

 
 

</div>



</body>
</html> 